<?php
/**
 * 用户异常
 * @author bcxgame
 */
namespace app\common\exception;

class User extends Base
{
    const E_NOT_LOGIN      = '11001';
    const E_IS_LOGIN       = '11002';
    const E_NO_PURVIEW     = '11003';
    const E_ADD_FAIL       = '11004';
    const E_NOT_EXISTS     = '11005';
    const E_NOT_ENABLE     = '11006';
    const E_EXISTS         = '11007';
    const E_JWT_ERROR      = '11008';
    const E_PASSWORD       = '11009';
    const E_MAX_LOGIN      = '11010';
    const E_PHONE_EXISTS   = '11011';
    const E_CODE           = '11012';
    const E_BALANCE_LESS   = '11013';
    const E_RECHARGE_ERROR = '11014';
    const E_PASSWORD_ERROR = '11015';
    const E_FORWARD_ERROR  = '11016';
    const E_OTHER_LOGIN    = '11017';
    const E_FORWARD_AMOUNT = '11018';
    const E_BAST_AMOUNT    = '11019';
    const E_ORDER_FALL     = '11020';
    const E_AMOUNT_FALL    = '11021';
    const E_PRICE_FALL     = '11022';
    const E_PAYPASSWORD    = '11023';

    public static $messageList = [
        self::E_NOT_LOGIN      => '用户未登录',
        self::E_IS_LOGIN       => '用户已登录',
        self::E_NO_PURVIEW     => '未授权访问',
        self::E_ADD_FAIL       => '注册失败',
        self::E_NOT_EXISTS     => '用户不存在',
        self::E_NOT_ENABLE     => '账户已冻结',
        self::E_EXISTS         => '用户已存在',
        self::E_JWT_ERROR      => 'Token生成异常',
        self::E_PASSWORD       => '手机号码或密码错误',
        self::E_MAX_LOGIN      => '今天登录失败次数已超过5次',
        self::E_PHONE_EXISTS   => '手机号码已经存在',
        self::E_CODE           => '推荐码异常',
        self::E_BALANCE_LESS   => '余额不足',
        self::E_RECHARGE_ERROR => '用户充值失败',
        self::E_PASSWORD_ERROR => '密码错误',
        self::E_FORWARD_ERROR  => '剩余可提现金额为%s',
        self::E_OTHER_LOGIN    => '用户已在其他设备登录',
        self::E_FORWARD_AMOUNT => '提现金额不能少于100',
        self::E_BAST_AMOUNT    => '同一时段同一币种竞猜只能下注一次',
        self::E_ORDER_FALL     => '请求错误，请刷新页面',
        self::E_AMOUNT_FALL    => '下单金额必须大于0',
        self::E_PRICE_FALL     => '行情价格错误',
        self::E_PAYPASSWORD    => '支付密码不对',
    ];
}
